package net.shakewarner;

public enum ReturnCode {
	READ_ERROR(-2, "Error occures during request reading"), PARSE_ERROR(-1,
			"Error occures during request parsing"), NONE(0, "None"), SUCCESS(
			1, "Operation successful");

	private int level;
	private String representation;

	private ReturnCode(final int level, final String representation) {
		this.level = level;
		this.representation = representation;
	}

	public int getLevel() {
		return this.level;
	}

	public void setLevel(final int level) {
		this.level = level;
	}

	public String getRepresentation() {
		return this.representation;
	}

	public void setRepresentation(final String representation) {
		this.representation = representation;
	}

}
